<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<%
	if((String)session.getAttribute("username")==null){
		out.print("<script>alert('尚未登录！');location.href='index.jsp'</script>");
	}
	session.invalidate();  //让Session信息失效
	out.print("<script>alert('成功登出!');location.href='index.jsp'</script>");
	//response.sendRedirect("index.jsp");
 %>
</body>
</html>